package com.mall.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author sppxpp
 * @since 2023-04-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("mall_shopping_cart")
public class ShoppingCart implements Serializable {

    private static final long serialVersionUID=1L;

    @TableId(value = "shopping_cart_id", type = IdType.AUTO)
    private Integer shoppingCartId;

//    @ApiModelProperty(value = "用户ID")
    private String userId;

//    @ApiModelProperty(value = "商品ID")
    private String goodsId;

//    @ApiModelProperty(value = "商品数量")
    private Integer goodsCount;

//    @ApiModelProperty(value = "创建时间")
    private String shoppingCartCreateTime;

    //下面3个在展示我的购物车里面的商品的时候用到
    @TableField(exist = false)
    private Double goodsPrice;
    @TableField(exist = false)
    private String goodsName;
    @TableField(exist = false)
    private String goodsCover;
}
